package com.aijk.ehm.api;

import com.aijk.commons.exception.ErrorCodeException;
import com.aijk.ehm.model.HealthMonitorQo;
import com.aijk.ehm.model.SemRecord;
import com.aijk.ehm.model.qo.SemRecordQo;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * 测量记录
 */
public interface SemRecordApi {
    Long save(SemRecord bean) throws ErrorCodeException;

    void update(SemRecord bean) throws ErrorCodeException;

    SemRecord findOne(Long id) throws ErrorCodeException;

    List<SemRecord> list(SemRecordQo qo);

    void deleteById(Long id) throws ErrorCodeException;

    int count(SemRecordQo qo);

    PageInfo<SemRecord> page(SemRecordQo qo);

    Long saveHm(HealthMonitorQo healthMonitorQo) throws ErrorCodeException;
}